Skip to content

Conversation

@BartoszKlonowski
Copy link
Member

This pull request adds the user's account page and provides the application with the login page.

@BartoszKlonowski BartoszKlonowski added the help wanted Extra attention is needed label Apr 15, 2021
@BartoszKlonowski BartoszKlonowski changed the title [DRAFT] USer account page & login screen [DRAFT] User account page & login screen Apr 20, 2021
The user's data are kept in the local User instance which is pulled each
time the User's account page is entered.
The information can be used from the any other component via the Native
module.
@BartoszKlonowski BartoszKlonowski force-pushed the feature-user-account-functionality branch from 94524b5 to d61ab3f Compare April 23, 2021 12:40
When trying to open the window on the separate thread (after launching
the coroutine) it is possible that there'll be the exception thrown by
the base.h implementation.
The reason for specifying the winrt::hresult_error is that it does not
inherits from the std::exception so it would be impossible to catch by
the universal exception.
The FilePicker when opened was throwing the "Invalid window handle" error.
This was caused by the native module thread affinity and the fact that
the FilePicker should be launched in the UI thread explicitly.

The fix for that is to launch the couroutine on the UI context using the
UIDispatcher method of React Native Windows.
for more details and the reasoning please check:
https://github.com/microsoft/react-native-windows/issues/7641
@BartoszKlonowski BartoszKlonowski removed the help wanted Extra attention is needed label Apr 26, 2021
@BartoszKlonowski BartoszKlonowski merged commit d770b71 into main Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants